package com.asynctm.android.socialnetwork.dto;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Bitmap;

/**
 * Contacto
 * 
 * @author rockdrigo
 */
public class ContactDto {

	/** Identificador del contacto */
	private String id;

	/** Nombre del contacto */
	private String name;

	/** Telefonos del contacto */
	private List<String> phoneNumberList;

	/** Emails */
	private List<String> emailList;

	/** Foto de Contacto */
	private Bitmap photo;

	public ContactDto(
		String id, 
		String name, 
		List<String> phoneNumberList,
		List<String> emailList, Bitmap photo
	) {
		super();
		this.id = id;
		this.name = name;
		this.phoneNumberList = phoneNumberList;
		this.emailList = emailList;
		this.photo = photo;
	}

	public String getId() {
		if (id == null)
			id = "";
		return id;
	}

	public String getName() {
		if (name == null)
			name = "";
		return name;
	}

	public List<String> getPhoneNumberList() {
		if (phoneNumberList == null)
			phoneNumberList = new ArrayList<String>();
		return phoneNumberList;
	}

	public List<String> getEmailList() {
		if (emailList == null)
			emailList = new ArrayList<String>();
		return emailList;
	}

	public Bitmap getPhoto() {
		return photo;
	}

	@Override
	public String toString() {
		return "ContactDto [id=" + id + ", name=" + name + ", phoneNumberList="
				+ phoneNumberList + ", emailList=" + emailList + "]";
	}

}
